<!DOCTYPE html>
<html lang="en" xmlns:th="https://www.thymeleaf.org/">
<head>
    <meta charset="UTF-8">
    <title>Title</title>

    <link th:href="@{/webjars/bootstrap/5.2.3/css/bootstrap.css}"
          href="../static/bootstrap-5.3.0/css/bootstrap.css" rel="stylesheet"/>
</head>
<body>
<table class="table table-striped table-hover">
    <tr>
        <td>文件名</td>
        <td>操作</td>
    </tr>
    <tr th:each="filename:${filenames}">
        <td th:text="${filename}"></td>
        <td >
            <a th:href="'http://localhost:8080/file/download/'+${filename}">下载</a>
        </td>
    </tr>
</table>
</body>
</html>